package com.liushuai.demotestcxf.api;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

import java.util.ArrayList;
import java.util.List;

/**
 */
@JacksonXmlRootElement(localName = "addDoctorInfo")
public class DoctorInfoListRequest {
    @JacksonXmlProperty(localName = "request")
    @JacksonXmlElementWrapper(useWrapping = false)
    private List<DoctorInfo> doctorInfoList = new ArrayList<>();

    public List<DoctorInfo> getDoctorInfoList() {
        return doctorInfoList;
    }

    public void setDoctorInfoList(List<DoctorInfo> doctorInfoList) {
        this.doctorInfoList = doctorInfoList;
    }

    public static class DoctorInfo {
        @JacksonXmlProperty(localName = "hospitalid")
        private String hospitalId; // 医院ID（必填项）
        @JacksonXmlProperty(localName = "doctorid")
        private String doctorId; // 医生ID
        @JacksonXmlProperty(localName = "doctorname")
        private String doctorName; // 医生姓名
        @JacksonXmlProperty(localName = "doctorgender")
        private String doctorGender; // 医生性别(1 男、2 女)
        @JacksonXmlProperty(localName = "area")
        private String sarea; // 医生负责区域
        @JacksonXmlProperty(localName = "doctorrank")
        private String doctorRank; // 医生职称（例如：主任医师）
        @JacksonXmlProperty(localName = "telephoneno")
        private String telephoneNo; // 联系电话
        @JacksonXmlProperty(localName = "workrankid")
        private String workRankId; // 挂号类别ID（1 普通门诊，5 专家门诊，其他有待增加）
        @JacksonXmlProperty(localName = "workrank")
        private String workRank; // 挂号类别名称（普通门诊、专家门诊）
        @JacksonXmlProperty(localName = "deptid")
        private String deptId; // 科室ID
        @JacksonXmlProperty(localName = "deptname")
        private String deptName; // 科室名称
        @JacksonXmlProperty(localName = "information")
        private String information; //医生介绍
        @JacksonXmlProperty(localName = "keyword")
        private String keyword; //搜索关键字
        @JacksonXmlProperty(localName = "pictureurl")
        private String pictureUrl; //医生图片Url
        @JacksonXmlProperty(localName = "flag")
        private String flag; //标志位：1:新增，2：修改，3:删除
        @JacksonXmlProperty(localName = "tag1")
        private String tag1; //备注2（预留字段）
        @JacksonXmlProperty(localName = "tag2")
        private String tag2; //备注2（预留字段）

        public String getHospitalId() {
            return hospitalId;
        }

        public void setHospitalId(String hospitalId) {
            this.hospitalId = hospitalId;
        }

        public String getDoctorId() {
            return doctorId;
        }

        public void setDoctorId(String doctorId) {
            this.doctorId = doctorId;
        }

        public String getDoctorName() {
            return doctorName;
        }

        public void setDoctorName(String doctorName) {
            this.doctorName = doctorName;
        }

        public String getDoctorGender() {
            return doctorGender;
        }

        public void setDoctorGender(String doctorGender) {
            this.doctorGender = doctorGender;
        }

        public String getDoctorRank() {
            return doctorRank;
        }

        public void setDoctorRank(String doctorRank) {
            this.doctorRank = doctorRank;
        }

        public String getTelephoneNo() {
            return telephoneNo;
        }

        public void setTelephoneNo(String telephoneNo) {
            this.telephoneNo = telephoneNo;
        }

        public String getWorkRankId() {
            return workRankId;
        }

        public void setWorkRankId(String workRankId) {
            this.workRankId = workRankId;
        }

        public String getWorkRank() {
            return workRank;
        }

        public void setWorkRank(String workRank) {
            this.workRank = workRank;
        }

        public String getDeptId() {
            return deptId;
        }

        public void setDeptId(String deptId) {
            this.deptId = deptId;
        }

        public String getDeptName() {
            return deptName;
        }

        public void setDeptName(String deptName) {
            this.deptName = deptName;
        }

        public String getInformation() {
            return information;
        }

        public void setInformation(String information) {
            this.information = information;
        }

        public String getKeyword() {
            return keyword;
        }

        public void setKeyword(String keyword) {
            this.keyword = keyword;
        }

        public String getPictureUrl() {
            return pictureUrl;
        }

        public void setPictureUrl(String pictureUrl) {
            this.pictureUrl = pictureUrl;
        }

        public String getFlag() {
            return flag;
        }

        public void setFlag(String flag) {
            this.flag = flag;
        }

        public String getTag1() {
            return tag1;
        }

        public void setTag1(String tag1) {
            this.tag1 = tag1;
        }

        public String getTag2() {
            return tag2;
        }

        public void setTag2(String tag2) {
            this.tag2 = tag2;
        }

        public String getArea() {
            return sarea;
        }

        public void setArea(String sarea) {
            this.sarea = sarea;
        }
    }
}
